import { getProjectTypeListApi, getProjectListApi, getProjectDetailApi } from '@/apis/index.js';

function getProjectTypeList(info, successCallback, errCallback) {
    // 此时需要您的接口返回个人信息
	getProjectTypeListApi(info).then(res => {
        successCallback && successCallback(res)
    }, err => {
        errCallback && errCallback(err)
    });
}

function getProjectList(info, successCallback, errCallback) {
    // 此时需要您的接口返回个人信息
	getProjectListApi(info).then(res => {
        successCallback && successCallback(res)
    }, err => {
        errCallback && errCallback(err)
    });
}

function getProjectDetail(info, successCallback, errCallback) {
    // 此时需要您的接口返回个人信息
	getProjectDetailApi(info).then(res => {
        successCallback && successCallback(res)
    }, err => {
        errCallback && errCallback(err)
    });
}

export {
    getProjectTypeList,
    getProjectList,
    getProjectDetail
}